package com.lagou.service.impl;

import com.lagou.Hello1Service;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @ClassName: com.lagou.service.impl.Hello1ServiceImpl
 * @Auther: Jerry
 * @Date: 2020/10/18 22:11
 * @Desctiption: TODO
 * @Version: 1.0
 */
@Service
public class Hello1ServiceImpl implements Hello1Service {

    @Override
    public String sayHello(String name) {
        return "hello1," + name + " " + RpcContext.getContext().getAttachment("ip");
    }
}
